set(test_swig_SRC
	main.cpp
	driver.cpp
	implementation.cpp
	interface.hpp
	${CMAKE_CURRENT_BINARY_DIR}/wrapper.cpp
)

add_custom_command(
  OUTPUT wrapper.cpp 
  COMMAND Swig -Wall -c++ -squirrel -o wrapper.cpp ${CMAKE_CURRENT_SOURCE_DIR}/wrapper.i
 )
 
include_directories(
	.
)

add_executable(test_swig ${test_swig_SRC})
add_dependencies(test_swig wrapper.i interface.hpp Swig)
target_link_libraries(test_swig Squirrel SqStdLib)
